package cn.edu.ptu.jobfairs.basic.common;


/**
 * Created by Lin Chenxiao on 2020-03-05
 **/
public class VisibleException extends RuntimeException {
    private static final long serialVersionUID = 3726739524308995941L;
    private Errors error;

    public VisibleException() {
        super();
    }

    public VisibleException(Errors error) {
        super(error.getMessage());
        this.error = error;
    }

    public VisibleException(Errors error, String message) {
        super(message);
        this.error = error;
    }

    public void setError(Errors error) {
        this.error = error;
    }

    public Errors getError() {
        return this.error;
    }
}
